package handler

import (
	"ai-cli/config"
	"fmt"
)

func SetEnvKey(key string) {
	config.UserConfig.Set("API_KEY", key)
	err := config.UserConfig.WriteConfig()
	if err != nil {
		fmt.Println("写入key失败:", err)
	}
}
